<template>
  <div id="nav-header">
    <p>猫眼电影</p>
    <a href="#">
      <i class="iconfont icon-denglu"></i>
    </a>
    <ul>
      <li>
        <router-link exact to="/">影片</router-link>
      </li>
      <li>
        <router-link exact to="/cinemaList">影院</router-link>
      </li>
    </ul>
  </div>
</template>

<script>

export default {

}
</script>

<style scoped>
#nav-header {
  width: 100% !important;
  background: #df2d2d;
  height: 4.2rem;
  line-height: 4.2rem;
}

#nav-header>p {
  text-align: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0px;
}

#nav-header>a {
  position: absolute;
  top: 0px;
  margin-left: 88%;
}

#nav-header i {
  font-size: 3.2rem;
  color: #ddd;
}

#nav-header>ul {
  display: flex;
  justify-content: space-around;
}

#nav-header>ul>li {
  display: inline-block;
  flex-grow: 1;
  text-align: center;
}

#nav-header>ul>li>a {
  color: #000;
  font-size: 1.8rem;
  display: block;
}

.router-link-active {
  border-bottom: 2px solid #df2d2d;
}
</style>

